package com.cppsu.cgx.libraryseatselection.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;

/**
 * @Author: guibo
 * @Description:
 * @Date: Created in 10:58 2021/3/10
 * @Modified By:
 */
@Data
public class UserParam {

    private Long id;

    @ApiModelProperty(value = "学号或工号")
    @NotBlank(message = "学号或工号不能为空")
    private String number;

    @ApiModelProperty(value = "姓名")
    @NotBlank(message = "姓名不能为空")
    private String name;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "用户类型：1学生，2教职人员，3员工")
    private Integer type;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "密码")
    @NotBlank(message = "密码不能为空")
    private String password;

}
